package entity;

import client.Client;

public class Customer {
	private String costumer_id;
	private String first_name;
	private String last_name;
	private String mail;
	private String password;
	private double acc_balance;
	public Customer()
	{
		acc_balance=0;
	}
	public Customer(String costumer_id,String first_name,String last_name,String mail,String password)
	{
		this.costumer_id=costumer_id;
		this.first_name=first_name;
		this.last_name=last_name;
		this.mail=mail;
		this.password=password;
		acc_balance=0;
	}
	
	
	public void AddBalance(double sum)
	{
		this.acc_balance+=sum;
		Client.updateCustomer(this);
	}
	

	public String getCostumer_id()
	{return this.costumer_id;}
	public void setCostumer_id(String costumer_id)
	{this.costumer_id=costumer_id;}
	
	
	public String getFirst_name()
	{return this.first_name;}
	public void setFirst_name(String first_name)
	{this.first_name=first_name;}
	
	public String getLast_name()
	{return this.last_name;}
	public void setLast_name(String last_name)
	{this.last_name=last_name;}
	
	public String getMail()
	{return this.mail;}
	public void setMail(String mail)
	{this.mail=mail;}
	
	public String getPassword()
	{return this.password;}
	public void setPassword(String password)
	{this.password=password;}
	
	public double getAcc_balance()
	{return this.acc_balance;}
	public void setAcc_balance(double acc_balance)
	{this.acc_balance=acc_balance;}
	

}
